package com.bsj.sipgateway.sip.event.online;

import com.bsj.power.common.def.entity.gb28181.Device;
import com.bsj.sipgateway.sip.bean.Position;
import org.springframework.context.ApplicationEvent;

/**    
 * @Description: 在线事件类
 * @author bsj-chenjunkang
 * @date 2022/8/31
 */
public class OnlineEvent extends ApplicationEvent {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	public OnlineEvent(Object source) {
		super(source);
	}

	private Device device;

	private Position position;
	private String from;

	public Device getDevice() {
		return device;
	}

	public void setDevice(Device device) {
		this.device = device;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public Position getPosition() {
		return position;
	}

	public void setPosition(Position position) {
		this.position = position;
	}
}
